package com.example.harmonyosproject.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Delete;

import java.io.Serializable;
import java.time.LocalDateTime;
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddFriend implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer friendId;
    private String headImage;
//    state: 1:等待验证 2:同意按钮 3.已添加
    private Short state;
    private String text;
    private String nickname;
    private LocalDateTime createTime;

    public AddFriend(Integer userId, Integer friendId, Short state) {
        this.userId = userId;
        this.friendId = friendId;
        this.state = state;
    }

    public AddFriend(Integer userId, Integer friendId, String nickname) {
        this.userId = userId;
        this.friendId = friendId;
        this.nickname = nickname;
    }

    public AddFriend(Integer userId, Integer friendId, Short state, String text, String nickname) {
        this.userId = userId;
        this.friendId = friendId;
        this.state = state;
        this.text = text;
        this.nickname = nickname;
    }





}
